package com.raccoonagents.tools.cascet2d.model;

import java.io.File;
import java.io.IOException;

public abstract class AbstractResource {
	protected final File handle;
	public File getHandle() {
		return handle;
	}

	/**
	 * 
	 * @param file the resource file instance
	 */
	public AbstractResource(final File file) {
		this.handle = file;
	}
	
	@Override
	public int hashCode() {
		return handle.getAbsolutePath().hashCode();
	}
	
	public abstract void load() throws IOException;
}
